<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <style>
    html,
    body {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-flex-flow: column;
        flex-flow: column;
        height: 100%;
    }
    [v-cloak]{
        display:none;
    }
    header {
        height: 250px;
        padding-top: 8px;
        background-color: #e3007f;
    }
    header .back {
        position: absolute;
        top:30px;
        left: 10px;
        width: 80px;
        height: 50px;
        background: url(../images/system_image/back.png);
        background-position: 12px 16px;
        background-size: 20px 30px;
        background-repeat: no-repeat;
        float:left;
    }

    header .icon-panel {
        width: 100%;
        height: 86px;
        padding-top:60px;
        text-align: center;
        display: inline-block;
    }

    header .icon-panel .face {
        display: inline-block;
        box-sizing: border-box;
        width: 86px;
        height: 86px;
        border: 3px solid #b10063;
        border-radius: 86px;
        /* background-image: url(./images/face.jpg); */
        background-size: 100% 100%;
        background-position: center center;
        background-repeat: no-repeat;
    }

    header .username {
        height: 30px;
        line-height: 30px;
        font-size: 14px;
        color: #fff;
        text-align: center;
    }

    header .account-info {
        height: 30px;
        line-height: 30px;
        font-size: 12px;
        color: #fff;
        text-align: center;
    }

    .option {
        position: relative;
        box-sizing: border-box;
        width: 100%;
        height: 61px;
        border-bottom: 1px solid #ddd;
    }

    .option .icon {
        position: absolute;
        left: 0;
        top: 0;
        width: 40px;
        height: 60px;
        background-repeat: no-repeat;
        background-position: 12px center;
        background-size: auto 20px;
    }

    .option .icon-myorder {
        background-image: url(../images/system_image/img_item_myorder.png);
    }

    .option .icon-account {
        background-image: url(../images/system_image/icon_user_info_accounts.png);
    }

    .option .icon-coupon {
        background-image: url(../images/system_image/icon_user_coupon.png);
        background-position: 8px center;
    }

    .option .icon-address {
        background-image: url(../images/system_image/item_user_address.png);
    }

    .option .title {
        position: relative;
        box-sizing: border-box;
        width: 100%;
        height: 60px;
        padding-left: 40px;
        font-size: 14px;
        color: #444;
        text-align: left;
        line-height: 60px;
    }

    .option .arrow-panel {
        position: absolute;
        top: 0;
        right: 12px;
        width: auto;
        height: 60px;
        background-image: url(../images/system_image/arrow_right.png);
        background-repeat: no-repeat;
        background-size: 16px 24px;
        background-position: right center;
    }

    .option .arrow-panel .text {
        box-sizing: border-box;
        padding-right: 20px;
        width: auto;
        height: 60px;
        line-height: 60px;
        font-size: 13px;
        color: #888;
        text-align: left;
    }

    section {
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        flex: 1;
        overflow: auto
    }

    footer {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-flex-flow: row;
        flex-flow: row;
        width: 100%;
        height: 50px;
    }

    footer .item {
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        flex: 1;
        width: 100%;
        height: 50px;
    }

    footer .item-service {
        text-align: right;
    }

    footer .item .button {
        display: inline-block;
        width: auto;
        height: 50px;
        box-sizing: border-box;
        line-height: 50px;
        text-align: left;
        font-size: 16px;
        background-size: auto 16px;
        background-position: 16px center;
        background-repeat: no-repeat;
    }

    .setting {
        padding-left: 34px;
        background-image: url(../images/system_image/user_setting.png);
    }

    .message {
        padding-left: 44px;
        background-image: url(../images/system_image/icon_user_messages.png);
    }

    .service {
        padding-left: 34px;
        padding-right: 16px;
        background-image: url(../images/system_image/user_call.png);
    }

    
    </style>
</head>

<body>
    <header id="head" >
        <div class="back" tapmode="highlight" onclick="window.location.href='javascript:history.go(-1);'"></div>
        <div class="icon-panel" tapmode onclick="alert('该功能有待开发');">
            <div id="face" class="face"></div>
        </div>
        <div id="username" class="username" value="username">鞠婧祎</div>
        <div class="account-info">积分：0|余额：￥0</div>
    </header>
    <section>
        <div class="option" tapmode onclick="alert('该功能有待开发');">
            <div class="icon icon-myorder"></div>
            <div class="title">我的订单</div>
            <div class="arrow-panel">
                <div class="text">查看所有订单详情</div>
            </div>
        </div>
        <div class="option" tapmode onclick="alert('该功能有待开发');">
            <div class="icon icon-account"></div>
            <div class="title">我的账户</div>
            <div class="arrow-panel">
                <div class="text">充值有礼</div>
            </div>
        </div>
        <div class="option" tapmode onclick="alert('该功能有待开发');">
            <div class="icon icon-coupon"></div>
            <div class="title">优惠卷</div>
            <div class="arrow-panel">
                <div class="text">查看我的优惠卷</div>
            </div>
        </div>
        <div class="option" tapmode onclick="alert('该功能有待开发');">
            <div class="icon icon-address"></div>
            <div class="title">收货地址</div>
            <div class="arrow-panel">
                <div class="text">管理我的收货地址</div>
            </div>
        </div></section>
    <footer id="footer">
        <div class="item">
            <div class="button setting" tapmode onclick="alert('该功能有待开发');">设置</div>
        </div>
        <div class="item">
            <div class="button message" tapmode onclick="alert('该功能有待开发');">消息</div>
        </div>
        <div class="item"></div>
        <div class="item item-service">
            <div class="button service" tapmode onclick="alert('该功能有待开发');">客服</div>
        </div>
    </footer>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
var face=document.getElementById('face');
// sessionStorage.setItem("","url(../images/system_image/face.jpg)");
var user = $api.getStorage("userInfo");
// alert(user);
var faceImage=sessionStorage.getItem("user");
face.style.backgroundImage="url("+user.blt_avatar +")";
// alert(face.style.backgroundImage);
document.getElementById('username').innerHTML=user.blt_name;




</script>
</html>
